#ifndef __LINKSTACK_H_
#define __LINKSTACK_H_

#include "DoubleLinkList.h"

struct LinkStack
{
    DLlist stack;
    ElementType TopElement;
};
typedef struct LinkStack LStack;


int InitLStack(LStack *s);
void SPush(LStack *s,ElementType element);
ElementType* SPop(LStack *s);
struct Node *GetTop(LStack *s);
int IsEmpty(LStack *s);
void StackTravel(LStack *s);
void FreeLStack(LStack *s);
#endif